(function () {
    var b = !! (window.history && history.pushState),
        e = document.location.hash.substr(1),
        c = e.replace(/[^a-zA-Z 0-9]+/g, ""),
        d = document.location.pathname,
        g = document.location.search;
    if (navigator.userAgent.search("chromeframe") > -1 || (typeof(window.externalHost) !== "undefined" && window.parent === window)) {
        b = true
    }
    function a() {
        var j = -1;
        if (navigator.appName === "Microsoft Internet Explorer") {
            var h = navigator.userAgent;
            var i = /MSIE ([0-9]{1,}[\.0-9]{0,})/;
            if (i.exec(h) !== null) {
                j = parseFloat(RegExp.$1)
            }
        }
        return j
    }
    var f = a();
    if (f >= 8 && f < 9) {
        b = false
    }
    
    if (!b) {
        if (e === "" && d !== "/") {
            document.location.replace(document.location.protocol + "//" + document.location.host + "/#" + (d === "/musicApp" ? "" : d) + g)
        }
        if (c !== "" && c !== "musicApp") {
            document.getElementsByTagName("html")[0].className += " initial-load"
        }
    } else {
        if (e !== "" && (e.substr(0, 1) === "/" || e.substr(0, 2) === "./")) {
            document.location.replace(document.location.protocol + "//" + document.location.host + "/musicApp" + e)
        }
    }
})();